﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Data;

namespace GioHangViet.Models
{
    public class ProductGallery
    {

        /// <summary>
        /// Mã thư viện ảnh.
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayProductGalleryId")]
        public int Id { get; set; }

        /// <summary>
        /// Mã sản phẩm
        /// </summary>
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayProductId")]
        public int ProductId { get; set; }

        /// <summary>
        /// Đường dẫn ảnh.
        /// </summary>
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayProductGalleryPath")]
        [Required(ErrorMessageResourceName = "ErrorProductGalleryPath", ErrorMessageResourceType = typeof(Resources.Error))]
        public string Path { get; set; }
    }
}